package com.youle.vending;

import org.junit.Test;

import com.youle.base.InterfaceBaseTest;
import com.youle.base.URLCOMMON;

public class VendingTest extends InterfaceBaseTest {

	@Test
	public void testQrcode() {
		paramMap.put("method", "youle.vending.pay.qrcode");
		paramMap.put("payType", "1");
		paramMap.put("mac", "00:e0:61:4c:29:8c");
		paramMap.put("goodsId", "1");
		paramMap.put("goodsNumber", "2");
	}

	@Test
	public void testStatus() {
		paramMap.put("method", "youle.vending.pay.status");
		paramMap.put("orderNo", "1201706140941394737523");
	}
	
	@Test
	public void testGetGoods() {
		paramMap.put("method", "youle.vending.goods.get");
		paramMap.put("mac", "00:e0:61:4c:29:8c");
	}
	
	@Test
	public void testOutGoods() {
		paramMap.put("method", "youle.vending.pay.out");
		paramMap.put("orderNo", "1201706140941394737523");
		paramMap.put("goodsId", "1");
		paramMap.put("goodsNumber", "1");
		paramMap.put("location", "1");
	}

	@Override
	public String getUrl() {
		return URLCOMMON.DEVELOP_URL;
	}
}